package com.ktjy.goods.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.ktjy.goods.domain.TAttrValues;
import com.ktjy.goods.domain.TGoodsAttrValues;
import com.ktjy.goods.mapper.TAttrValuesMapper;
import com.ktjy.goods.mapper.TGoodsAttrValuesMapper;
import com.ktjy.goods.service.ITAttrValuesService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 规格属性值表 服务实现类
 * </p>
 *
 * @author author
 * @since 2025-03-18
 */
@Service
public class TAttrValuesServiceImpl extends ServiceImpl<TAttrValuesMapper, TAttrValues> implements ITAttrValuesService {

    @Autowired
    private TAttrValuesMapper tGoodsInfoMapper;
    @Autowired
    private TGoodsAttrValuesMapper tGoodsAttrValuesMapper;

    @Override
    public List<TAttrValues> selectAttrValuesList(TAttrValues tAttrValues) {
        return tGoodsInfoMapper.selectAttrValuesList(tAttrValues);
    }

    @Override
    public List<TAttrValues> getAttrValues(Long attrId, Long goodsId) {
        return tGoodsInfoMapper.getAttrValues(attrId, goodsId);
    }
}
